package com.vtech.ont.base.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;

/**
 * Jena Configurations
 *
 * @author houzhiwei
 * @date 2017/7/16 15:46
 */
@Configuration
@PropertySource(value = "classpath:/config/ont/jena.properties")
public abstract class JenaConfiguration {

    @Autowired
    protected Environment env;

    // \|/ Properties keys

    //--------------------------- Jena TDB local -------------------------------------//

    protected static final String TDB_LOCATION = "jena.tdb.location";
    protected static final String TDB_ASSEMBLER_FILE = "jena.tdb.assembler-file";

    //--------------------------- Jena TDB JDBC -------------------------------------//

    protected static final String JDBC_TDB_URL = "jena.jdbc.tdb.url";
    protected static final String JDBC_TDB_MUST_EXIST = "jena.jdbc.tdb.must-exist";

    //--------------------------- Jena In Mem JDBC -------------------------------------//

    //------------------------------ Jena Ont File -------------------------------------//
    protected static final String JENA_FILE_LOCATION_MAPPER = "jena.file.location-mapper"; // used for load owl files into tdb
    protected static final String ONT_FILE_ENTRY = "jena.file.entry-file"; // 入口文件


    //--------------------------- Jena Remote JDBC -------------------------------------//


    //------------------------- Jena Inference Rule File -------------------------------//

    protected static final String INFER_RULES_FILE = "jena.infer.rules.file";

}
